<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="chtml" uri="http://www.szhelper.com/jsp/html"%>
<%
	String rootPath = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>还款管理</title>
</head>
<body>
<div class="youarehere">还款管理 &gt; <span>追偿列表</span></div>
<div id="content">
<form action='<chtml:path path="/" />repayment/recoverRepayMentList' method="post" id="recoverRepayMentForm">
<table width="99%" align="center" border="0" cellpadding="1" cellspacing="1" class="data_table">
	<tr>
		<td class="data_tab_th" colspan="4">查询追偿配置参数</td>
	</tr>
	<tr>
		<td class="data_tab_tdr">追偿信息状态</td>
		<td class="data_tab_tdl">
			<chtml:enum name="status"  selected="${requestScope.status}" textProperty="text" 
			type="com.hengpeng.itfinbase.persist.RecoverRepay$RecoverRepayStatus"></chtml:enum>
		</td>
		<td class="data_tab_tdr">借款人姓名</td>
		<td class="data_tab_tdl"><input type="text" value="${borrowUserName}" name="borrowUserName" /></td>
	</tr>
	<tr>
		<td colspan="4" class="bg_bai">
		
		<div class="mr_20 t_c">
			<input type="submit" class="pub_bt" value="查询" onclick='document.getElementsByName("PaginationButton_CurrentPage4list")[0].value=1;'/>
			<input type="button" class="pub_bt" value="重置" onclick="this.form.reset();" />
		</div>
			
	    </td>
	</tr>
</table>
<br />
<!-- 自定义标签示例 --> 
<chtml:list collection="listVo" type="com.hengpeng.itfinoss.controller.repayment.vo.RecoverRepayVo"  linkTarget="_self"
	includeFields="borrowName,borrowUserNameUrl,recoverRepayMoney,totalRepayNum,curRepayNum,lastRepayDate,overdueDate,overduePenalty,status,paybackUrl" 
	fieldWidth="100,100,100,60,50,100,100,100,100,50" 
	detailLink="../borrowInfo/detail/@{borrowInfoId}"
	showLinkField="borrowName"
	showCheckBox="false" title="追偿管理" paginationName="page"
	allowSort="false">
</chtml:list>
</form>
<form id="doActionForm" name="doActionForm">
	<input type="hidden" name="borrowinfoId" id="borrowinfoId"/>
	<input type="hidden" name="repaymentPlanId" id="repaymentPlanId"/>
	<input type="hidden" name="recoverRepayId" id="recoverRepayId"/>
</form>
<script type="text/javascript">
//偿还垫资操作
function payback (borrowinfoId, repaymentPlanId, recoverRepayId) {
	if(window.confirm('您确定要偿还垫资操作吗？')){
		$("#borrowinfoId").val(borrowinfoId);
		$("#repaymentPlanId").val(repaymentPlanId);
		$("#recoverRepayId").val(recoverRepayId);
		$("#doActionForm").attr("action","<%=rootPath%>/repayment/doRecoverRepayMent");
		$("#doActionForm").submit();
	}
}
//查看借款人详细
function userInfoDetail (id) {
	$("#doActionForm").attr("action","<%=rootPath%>/user/load/"+id);
	$("#doActionForm").submit();
}
</script>
</div>
<!--说明   -->	
<div class="sm_info">
	<p class="row_one">说明：</p>
	<p class="other"></p>
	<p class="other"></p>
</div>
</body>
</html>
